import './assets/main.css'
import './utils/request'
import pinia from './stores'

import { createApp } from 'vue'
// import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
// 1. 引入你需要的组件
import { 
  Button,
  NavBar,
  Icon,
  Field,
  Uploader,
  Dialog,
  Rate,
  Image as VanImage 
 } from 'vant';
// 2. 引入vant组件样式
import 'vant/lib/index.css';
import '@/style/vantCustomStyles.css'
// 引入阿里图标库https://www.iconfont.cn/iconfont样式
import '@/assets/iconfont/iconfont.css';
import '@/assets/iconfont/iconfont.js';

const app = createApp(App)

app.use(pinia)
app.use(router)
// 3. 注册你需要的组件
app.use(Button);
app.use(NavBar);
app.use(Icon);
app.use(Field);
app.use(Uploader);
app.use(Dialog);
app.use(Rate);
app.use(VanImage)

app.mount('#app')
